package com.ait.edu.controller.front;


import com.ait.commonutils.Msg;
import com.ait.edu.service.CourseService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;



@RestController
@RequestMapping("/eduservice/indexFront")
public class IndexFrontController {

    @Autowired
    private CourseService courseService;




    @ApiOperation("获取前几名")
    @GetMapping("index")
    public Msg indexfront(){


        Map<String, Object> teacherCouresAll = courseService.getTeacherCouresAll();


        return Msg.success().data(teacherCouresAll);
    }
}
